﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FRL.DebtChased.Controls
{
    public partial class AccountsAssignedCtrl : UserControl
    {
        public AccountsAssignedCtrl()
        {
            InitializeComponent();
        }

        #region General Event Handlers

        private GridLength _gridLengthZero = new GridLength(0);
        private GridLength _gridLenghtAuto = new GridLength(1, GridUnitType.Auto);

        private void HeaderBar_ExpandChange(object sender, EventArgs e)
        {
            if (HeaderBar.IsArrowUp)
            {
                LayoutRoot.RowDefinitions[1].Height = new GridLength(0);
                HeaderBar.IsArrowUp = false;
            }
            else
            {
                LayoutRoot.RowDefinitions[1].Height = new GridLength(1, GridUnitType.Auto);
                HeaderBar.IsArrowUp = true;
            }
        }
        #endregion
    }
}
